#include <iostream>
#include <sched.h>
#include <string>
#include <signal.h>
using namespace std;
int main(int argc, char* argv[]) {
    if(argc != 3) {
        cout << "./mykill signumber pid"; 
    }
    pid_t pid = stoi(argv[2]);
    int sig = stoi(argv[1]);
    int n = kill(pid, sig);
    if(n == 0) {
        cout << "send " << sig << " to " << pid << " success." << endl;
    }
    return 0;
}